using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace IFIGame
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class Livre : Movable
    {
        double len_competence = 200;
        public Livre(Game game)
            : base(game)
        {
            // TODO: Construct any child components here
        }

        public Livre(Game game, int _x, int _y, int _v, string _stringTexture)
            : base(game, _x, _y, _v, _stringTexture)
        { 
        }

        public double getCompetence()
        {
            return this.len_competence;
        }

        public void setCompetence(double _valeur)
        {
            this.len_competence = _valeur;
        }

        public void subCompetence(double _valeur)
        {
            this.len_competence -= _valeur;
        }



        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            // TODO: Add your initialization code here

            base.Initialize();
        }

        public void disparaittre()
        {
            this.Dispose();
        }



        protected override void LoadContent()
        {
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {

            base.Update(gameTime);
        }
    }
}
